<script setup lang="ts">




const tableData = [
  {
    id: 1,
    date: '2016-05-03',
    name: 'Tom',
    address: 'No. 189, Grove St, Los Angeles',
  },
  {
    id: 2,
    date: '2016-05-02',
    name: 'Jerry',
    address: 'No. 189, Grove St, Los Angeles',
  },
  {
    id: 3,
    date: '2016-05-04',
    name: 'Bob',
    address: 'No. 189, Grove St, Los Angeles',
  },
  {
    id: 4,
    date: '2016-05-01',
    name: 'Tomas',
    address: 'No. 189, Grove St, Los Angeles',
  },
]
</script>

<template>
  <div style="padding: 22px">
    <el-table :data="tableData" style="width: 100%" :stripe="true">
      <el-table-column prop="date" label="Date" width="180" />
      <el-table-column prop="name" label="Name" width="180" />
      <el-table-column prop="address" label="Address" />
      <el-table-column>
        <template #default="scope">
          <router-link :to="`/selectedProject/${scope.row.id}`">
            <el-button type="primary" size="small">项目</el-button>
          </router-link>
        </template>
      </el-table-column>
    </el-table>
  </div>
</template>

<style scoped>
.router-link-active {
  text-decoration: none;
  color: #fff;
}
a {
  text-decoration: none;
  color: #fff;
}

</style>